package cn.jx.asc.common.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author lhg
 */
public class JwtToken implements AuthenticationToken {
    private final String token;

    public JwtToken(String jwt){
        super();
        this.token = jwt;
    }

    /**
     * 返回访问令牌
     * @return Object
     */
    @Override
    public Object getPrincipal() {

        return token;

    }

    /**
     * 返回访问令牌
     * @return Object
     */
    @Override
    public Object getCredentials() {

        return token;

    }
}
